//
//  MSData+YMW.m
//  JYG_Agent
//
//  Created by Mike on 15/10/12.
//  Copyright © 2015年 apple. All rights reserved.
//

#import "MSData+YMW.h"

@implementation propertyPicture

-(void)dealloc
{
    self.cateName = nil;
    self.remark = nil;
    self.path=nil;
    self.path = nil;
    self.cateId=nil;
    self.url=nil;
}

- (id)copyWithZone:(NSZone *)zone
{
    propertyPicture *newItem = [[propertyPicture allocWithZone:zone] init];
    newItem.cateName = self.cateName;
    newItem.remark = self.remark;
    newItem.path = self.path;
    newItem.cateId=self.cateId;
    newItem.url = self.url;
    return newItem;
}

@end

/**
 *  通用model
 */
@implementation MSCommonModel
- (id)copyWithZone:(NSZone *)zone {
    MSCommonModel *model = [[MSCommonModel allocWithZone:zone] init];
    model.title = self.title;
    model.subTitle = self.subTitle;
    model.thirdTitle = self.thirdTitle;
    model.position=self.position;
    model.type=self.type;
    return model;
}
@end

/**
 *  会员服务model
 */
@implementation MSMemberServeModel
- (id)copyWithZone:(NSZone *)zone {
    MSMemberServeModel *model = [[MSMemberServeModel allocWithZone:zone] init];
    model.day = self.day;
    model.level = self.level;
    model.wallet = self.wallet;
    model.array=self.array;
    return model;
}
@end


/**
 *  个人信息
 */
@implementation MSUserInfoModel
- (id)copyWithZone:(NSZone *)zone {
    MSUserInfoModel *model = [[MSUserInfoModel allocWithZone:zone] init];
    model.headIcon = self.headIcon;
    model.name = self.name;
    model.position=self.position;
    model.area = self.area;
    model.department = self.department;
    model.company = self.company;
    model.address=self.address;
    model.societyNum = self.societyNum;
    model.telephone = self.telephone;
    model.email = self.email;
    model.internet=self.internet;
    model.tracNum=self.tracNum;
    model.atentionNum=self.atentionNum;
    model.tradeNum=self.tradeNum;
    model.footNum=self.footNum;
    model.coinNum=self.coinNum;
    model.level=self.level;
    return model;
}
@end


/**
 *  上传卡片信息
 */
@implementation MSUploadModel
- (id)copyWithZone:(NSZone *)zone {
    MSUploadModel *model = [[MSUploadModel allocWithZone:zone] init];
    model.title = self.title;
    model.subTitle = self.subTitle;
    model.exampleImage = self.exampleImage;
    model.officialImage = self.officialImage;
    model.haveUpload = self.haveUpload;
    model.selectImage = self.selectImage;
    return model;
}
@end

/**
 *  项目
 */
@implementation MSProjectModel
- (id)copyWithZone:(NSZone *)zone {
    MSProjectModel *model = [[MSProjectModel allocWithZone:zone] init];
    model.itemID = self.itemID;
    model.title = self.title;
    model.projectType = self.projectType;
    model.projectState = self.projectState;
    model.investment = self.investment;
    model.address = self.address;
    model.time = self.time;
    model.introduction = self.introduction;
    model.projectArea = self.projectArea;
    model.projectPeriod = self.projectPeriod;
    model.buildDateStart = self.buildDateStart;
    model.buildDateEnd = self.buildDateEnd;
    model.projectDynamic = self.projectDynamic;
    model.isAttention = self.isAttention;
    model.isTrack = self.isTrack;
    return model;
}
@end

/**
 *  项目动态
 */
@implementation MSProjectDynamicModel
- (id)copyWithZone:(NSZone *)zone {
    MSProjectDynamicModel *model = [[MSProjectDynamicModel allocWithZone:zone] init];
    model.title = self.title;
    model.time = self.time;
    model.brief = self.brief;
    model.type = self.type;
    model.memberLevel = self.memberLevel;
    return model;
}
@end

/**
 *  详情联系人
 */
@implementation MSDetailContactModel
- (id)copyWithZone:(NSZone *)zone {
    MSDetailContactModel *model = [[MSDetailContactModel allocWithZone:zone] init];
    model.peopleId = self.peopleId;
    model.name = self.name;
    model.company = self.company;
    model.position = self.position;
    model.telephone = self.telephone;
    model.address = self.address;
    model.source = self.source;
    model.time = self.time;
    model.otherProject = self.otherProject;
    model.contactType = self.contactType;
    model.projectName = self.projectName;
    model.isSaling = self.isSaling;
    return model;
}

- (NSString *)getContacterName {
    if (_name && _name.length > 0) {
        return _name;
    }
    return @"";
}

@end

/**
 *  足迹
 */
@implementation MSFootprintModel
- (id)copyWithZone:(NSZone *)zone {
    MSFootprintModel *model = [[MSFootprintModel allocWithZone:zone] init];
    model.itemID = self.itemID;
    model.name = self.name;
    model.memberLevel = self.memberLevel;
    model.time = self.time;
    model.imageArray = self.imageArray;
    model.introduction = self.introduction;
    model.goodNum = self.goodNum;
    model.badNum = self.badNum;
    model.isSelf = self.isSelf;
    model.isGoodEd = self.goodNum;
    model.isBadEd = self.isBadEd;
    return model;
}
@end

/**
 *  交易
 */
@implementation MSTradeModel
- (id)copyWithZone:(NSZone *)zone {
    MSTradeModel *model = [[MSTradeModel allocWithZone:zone] init];
    model.orderId = self.orderId;
    model.itemId = self.itemId;
    model.title = self.title;
    model.type = self.type;
    model.typeGroup = self.typeGroup;
    model.projectType = self.projectType;
    model.tradeState = self.tradeState;
    model.tradeNum = self.tradeNum;
    model.name = self.name;
    model.position = self.position;
    model.phone = self.phone;
    model.company = self.company;
    model.address = self.address;
    model.theme = self.theme;
    model.content = self.content;
    model.tradeEvaluate = self.tradeEvaluate;
    model.tradePrice = self.tradePrice;
    model.memberType = self.memberType;
    model.memberLevel = self.memberLevel;
    model.time = self.time;
    model.getPrice = self.getPrice;
    model.wallet = self.wallet;
    model.isEvaluate = self.isEvaluate;
    model.isSelf = self.isSelf;
    model.isComplete = self.isComplete;
    return model;
}
@end

/**
 *  交易平均价
 */
@implementation MSTradeKindPrice
- (id)copyWithZone:(NSZone *)zone {
    MSTradeKindPrice *newItem = [[MSTradeKindPrice allocWithZone:zone] init];
    newItem.saleContactPrice = self.saleContactPrice;
    newItem.saleProjectPrice = self.saleProjectPrice;
    newItem.buyContactPrice = self.buyContactPrice;
    newItem.buyProjectPrice = self.buyProjectPrice;
    return newItem;
}
@end

/**
 *  图片
 */
@implementation MSImage
- (id)copyWithZone:(NSZone *)zone {
    MSImage *newItem = [[MSImage allocWithZone:zone] init];
    newItem.title = self.title;
    newItem.mark = self.mark;
    newItem.url = self.url;
    newItem.info = self.info;
    return newItem;
}
@end

